package com.idealighter.game.bank.convert;

import com.idealighter.game.bank.dto.TranferRecordDto;
import com.idealighter.game.core.convert.DateLongConvert;
import com.idealighter.game.server.db.datadb.generate.domain.TransferGoldRecordDomain;

import java.util.List;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper(uses = DateLongConvert.class)
public interface BankConvert {
  BankConvert INSTANCE = Mappers.getMapper(BankConvert.class);

  TranferRecordDto toTransferRecordDto(TransferGoldRecordDomain record);

  List<TranferRecordDto> toTransferRecordDtos(List<TransferGoldRecordDomain> records);
}
